package com.lzq.model.singleton;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author : modify
 * @version : v1.0
 * @description :
 * @createTime : 2022/11/14 16:12
 * @updateUser : modify
 * @updateTime : 2022/11/14 16:12
 * @updateRemark :
 */
public class RunTimeDemo {
    public static void main(String[] args) throws IOException {
        Runtime runtime = Runtime.getRuntime();
        Process ipconfig = runtime.exec("ipconfig");
        InputStream inputStream = ipconfig.getInputStream();
        byte[] arr = new byte[1024 * 1024 * 100];
        int read = inputStream.read(arr);
        System.out.println(new String(arr, 0, read, "GBK"));
    }
}
